package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    User findUserByUsername(String username);

    // 菜单1
    User findByMenuUserUsername(String username);


    void add(User user,Integer [] roleIds);

    void deleteById(Integer id);

    void edit(User user, Integer[] roleIds);
    User findById(Integer id);

  /*  Map<String,Object> findById(Integer id);*/

    List<Integer> findRolesListByUserId(Integer id);

    PageResult findPage(QueryPageBean queryPageBean);
}
